* {
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
  min-height: 100vh;
}

button {
  outline:none;
}

input {
  outline:none;
}

h1 {
  width: 100%;
  height: 50px;
  font-size: 24px;
  color: white;
  border-radius: 5px;
  line-height: 50px;
  text-align: center;
  background:#1E90FF;
  margin-bottom: 20px;
}

h2 {
  border-left: 4px solid #1E90FF;
  padding-left: 5px;
  font-size: 18px;
  margin: 20px 0;
  color: #333;
  font-weight: 600;
}

.box {
  width: 400px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
}

.bar {
  height:40px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bar input {
  height: 40px;
  width: 280px;
  padding: 5px 15px;
  box-sizing: border-box;
  border-radius: 5px;
  font-size: 16px;
  border: 1px solid #ddd;
  background-color: #eee;
  line-height: 30px;
  transition: all 100ms ease-in;
}

.bar input:hover {
  background-color: #fff;
}

.bar input:focus {
  background-color: #fff;
}

.bar button {
  cursor: pointer;
  width: 100px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #eee;
  transition: all 100ms ease-in;
  font-size: 16px;
}

.bar button:hover {
  border: 2px solid #1E90FF;
  background-color: #fff;
}

.bar button:active {
  border: 2px solid #1E90FF;
  background-color: #ddd;
}

ul {
  min-height: 100px;
}

ul li {
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  min-height: 40px;
  list-style: none;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 10px;
}

ul li button {
  height: 26px;
  width: 50px;
  cursor: pointer;
  line-height: 26px;
  color: #fff;
  background-color: #F08080;
  border: 1px solid #fff;
  transition: all 100ms ease-out;
  border-radius: 5px;
}

ul li button:hover {
  background: #CD5C5C;
}


ul li p {
  font-size: 16px;
  max-width: 300px;
}

.check {
  height: 16px;
  width: 16px;
  cursor: pointer;
}

ul li {
  animation: fadein 100ms ease-in forwards;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media screen and (min-width:300px) and (max-width:500px) {
  body {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;
    display: flex;
    align-items: flex-start;
  }

  .bar input {
    font-size: 15rem;
  }

  h1 {
    border-radius: 0;
    font-size: 20rem;
  }

  .box {
    width: 100%;
    min-height: 100vh;
    padding-top: 0;
  }
  
  h2 {
    margin-left: 15px;
    font-size: 15rem;
  }

  ul {
    padding: 0 15px;
  }

  .bar {
    padding: 0 15px;
  }

  .bar input {
    flex-basis: 70%;
  }

  .bar button {
    flex-basis: 25%;
    font-size: 15rem;
  }

  ul li p {
    font-size: 15rem;
  }
}